import request from '@/utils/request'
/* eslint-disable */
let basePath2 = native.getConfig().adapterServer
/* eslint-enable */

/**
 * 获取左侧病案列表
 */
export function searchMRList ({kind, keyword}) {
    return request({
        url: `${basePath2}/api/MedicalRecord?kind=${kind}&keyword=${keyword}`,
        method: 'get',
        headers: {'token': localStorage.getItem('authToken')}
    })
}

/**
 * 获取病案信息
 */
export function searchMR ({id}) {
    return request({
        url: `${basePath2}/api/MedicalRecord/GetById?id=${id}`,
        method: 'get',
        headers: {'token': localStorage.getItem('authToken')}
    })
}
